package jsyf.oa.dao.device;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.system.Company2BrandEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by y on 2018/3/12.
 */
@Repository
public class CompanyBrandDao extends BaseDao{
    public CompanyBrandDao(){
        super.iBaseEntity = new Company2BrandEntity();
    }
    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json,Company2BrandEntity.class);
    }
}
